package cn.bonoon.kernel.io.devices;

import java.io.File;
import java.util.List;

import org.springframework.web.multipart.MultipartFile;

import cn.bonoon.kernel.io.BFile;
import cn.bonoon.kernel.io.FileInfo;
import cn.bonoon.kernel.io.StorageFile;

public interface StorageDevice extends Comparable<StorageDevice>{
	
	File open(BFile file);
	FileInfo[] save(StorageFile file, List<MultipartFile> mFiles, int limit) throws Exception;
	boolean checkFreeSpace(long needSize);
	
	int ordinal();
}
